<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex应用案例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .content {
            width: 600px;
            height: 200px;
            background-color: #ccc;
            margin: 0 auto;
        }
        .content > ul {
            list-style: none;
            width: 100%;
            display: flex;
        }
        .content > ul > li {
            height: 36px;
            text-align: center;
            line-height: 36px;
            background-color: blue;
            border-right: 1px solid #ccc;
            /* 设置自动布局 */
            flex: 1;
        }
    </style>
</head>
<body>
    <div class="content">
        <ul>
            <li>首页</li>
            <li>商品分类</li>
            <li>我的订单</li>
            <li>最新商品</li>
            <li>联系我们</li>
        </ul>
    </div>
</body>
</html>